<template>
    <div class="InputB">
      <hr>
      <div style="height:50px">
        <h1>{{name}}</h1>
      </div>
      子组件：<input type="text" v-model="name">
      <hr>
    </div>
  </template>
  
  <script>
  export default {
      props:['name'],
      name:'InputB',
  }
  </script>
  
  <style>
  
  </style>